/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cxhd.pacs.model;

import com.jfinal.plugin.activerecord.Model;
import java.util.List;
import java.util.Map;

/**
 *
 * @author Administrator
 */
public class LisDetail extends Model<LisDetail> {

    public static final LisDetail dao = new LisDetail();

    public void saveInfo(Map<String, String> map) {
        System.out.println(map);
        try {
            for (String key : map.keySet()) {
                set(key, map.get(key));
            }
            save();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public List<LisDetail> getDetail(String pk) {
        try {
           return find("select * from lis_detail where detail_id=?", pk);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }

}
